package com.atguigu.tingshu.model.album;

import com.atguigu.tingshu.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.util.List;

/**
 * 标签名称实体类--对应数据库中的base_attribute表
 * @author sun
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("base_attribute")
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class BaseAttribute extends BaseEntity {

	@Serial
	private static final long serialVersionUID = 1L;
	/**
	 * 一级分类id
	 */
	@TableField("category1_id")
	private Long category1Id;
	/**
	 * 属性显示名称
	 */
	@TableField("attribute_name")
	private String attributeName;
	/**
	 * 属性值列表
	 */
	@TableField(exist = false)
	private List<BaseAttributeValue> attributeValueList;

}